package com.atguigu.gmall.product.controller;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.mapper.BaseSaleAttrMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping()
public class BaseSaleAttrController {
    @Autowired
    private BaseSaleAttrMapper baseSaleAttrMapper;

    /**
     * 获取销售属性数据
     * @return
     */
    @GetMapping("/admin/product/baseSaleAttrList")
    public Result baseSaleAttrList() {
        return Result.ok(baseSaleAttrMapper.selectList(null));
    }

}
